<?php


declare(strict_types=1);

namespace App\Controller;

use Hyperf\HttpServer\Annotation\AutoController;

use App\Foundation\Utils\TDb;


/**
 * @AutoController()
 * @package App\Controller;
 */
class IndexController extends AbstractController
{
    /**
     * 获取用户数据列表
     */
    public function index()
    {
       $picList = [
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face1.png',
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face2.png',
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face3.png',
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face4.png',
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face5.png',
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face6.png',
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face7.png',
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face8.png',
           'https://hyperf-cms.oss-cn-guangzhou.aliyuncs.com/admin_face/face9.png',
       ];

        return $this->success(['list' => $picList], 'aaa');
    }


    public function test(){
        return $this->success('aaaaa');
    }



    public function tdb(){
        // $Tdb = TDb::init();
        $res = Tdb::name('user')->select('user')->find()->querySql();
        var_dump($res);
        return $this->success([]);
    }




}